<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/validate.jsp" />
<script type="text/javascript">
	$(function() {
		$("#emp").hide();
	});
	function query() {
		$("#form1").submit();
	}
	function goDetail(id) {
		$("input[name='apply_id']").val(id);
		$("#emp").show();
	}
	function makeTrue() {
		var url = "${path}/ix/useapply/search/error/error.htm";
		$("#form1").attr("action", url);
		$("#form1").submit();
	}
	function makeCancel() {
		$("#emp").hide();
		$("#search_content").innerText = "";
	}
</script>
</head>
<body>
	<div>
		<form action="${path}/ix/useapply/search/error/list.htm" id="form1"
			method="post">
			<input name='apply_id' type="hidden" />
			<h2>
				<div>异常处理列表</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="5">
					<tr>
						<td width="80" align="right"><strong>用印事由：</strong></td>
						<td width="200" align="left"><input name="srh_reason"
							type="text" /></td>
						<td width="80" align="right"><strong>用印编号：</strong></td>
						<td width="200" align="left"><input name="srh_name"
							type="text" /></td>
						<td align="left"><a href="javascript:query();"> <img
								src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
								height="27" border="0" id="Image4" />
						</a></td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>用印编号</th>
					<th>用印事由</th>
					<th>用印份数</th>
					<th>每份的盖章数</th>
					<th>申请人员</th>
					<th>描述</th>
					<th>审核结果</th>
					<th>处理方式</th>
					<th>操作</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="9"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${list}" var="v">
					<tr>
						<td>${v.name}(${v.true_code})</td>
						<td>${v.reason}</td>
						<td>${v.copes}</td>
						<td>${v.num}</td>
						<td>${v.uname}</td>
						<td>${v.note}</td>
						<td>${v.search_result }</td>
						<td>${v.e_content }</td>
						<td><c:if test="${v.e_time==null}">
								<a href="javascript:goDetail('${v._id}');">【处理】</a>
							</c:if></td>
					</tr>
				</c:forEach>
			</table>
			<div id="response"></div>
			<div class="options">
				<div class="quotes">
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>
			<div id="emp" style="height: 400px;position:fixed;left:36%;top:30%;">
				<div class="query">
					<h2>
						<div>用印异常处理</div>
					</h2>
					<table width="100%" class="listlindex">
						<tr>
							<th align="right">文件名称：</th>
							<td align="left" colspan="3">用印异常处理</td>
						</tr>
						<tr>
							<th align="right">审核结果描述：</th>
							<td align="left" colspan="3"><textarea name="e_content"
									rows="6" cols="50" maxlength="500" id="search_content"></textarea></td>
						</tr>
					</table>
					<div>&nbsp;</div>
					<a href="javascript:makeTrue();">【确定】</a> <a
						href="javascript:makeCancel();">【取消】</a>
				</div>
			</div>
		</form>
</body>
</html>